package model;

import org.springframework.http.converter.StringHttpMessageConverter;

import com.googlecode.androidannotations.annotations.rest.Get;
import com.googlecode.androidannotations.annotations.rest.Rest;

//@Rest(converters = { GsonHttpMessageConverter.class })
@Rest(converters = { StringHttpMessageConverter.class })
public interface RestLocBusInterface {

	void setRootUrl(String rootUrl);
	
	@Get("/buscabus/ws/get_lines")
	public String getAllLines();
	
	@Get("/buscabus/ws/get_linhas/{line}")
	public String getInfo(int line);

	@Get("/buscabus/ws/get_linesByCoordenates/{latiO}/{longO}/{latiF}/{longF}")
	public String getLinesCoordenates(double latiO, double longO, double latiF, double longF);

	@Get("/buscabus/ws/get_linesByTerminal/{latiO}/{longO}/{latiF}/{longF}")
	public String getLinesTerminal(double latiO, double longO, double latiF, double longF);
}
